package com.zhongxiangspace.enums;

import javax.sound.midi.Soundbank;

public enum HouseTypeEnum {

    HOUSE_TYPE_OFFICE("h1"),//写字楼
    HOUSE_TYPE_STATION("h2"),//工位
    HOUSE_TYPE_ALONE("h3"),//独栋
    HOUSE_TYPE_UNITED_OFFICE("h4");//联合办公
    private String name;


    public static HouseTypeEnum getEnumObject(String name) {
        for (HouseTypeEnum r : HouseTypeEnum.values()) {
            if (r.getName().equals(name)) {
                return r;
            }
        }
        return HouseTypeEnum.HOUSE_TYPE_OFFICE;
    }

    HouseTypeEnum(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
